<?php

namespace app\index\controller;

use app\index\model\Banner as BannerModel;
use app\index\model\IndustryNews;
use think\Controller;
use think\Request;
use app\index\model\Config as ConfigModel;

class Contact extends BaseController
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $banner = BannerModel::getBanner('contact');
        $this->assign('banner', $banner);
    }


    /**
     * 联系方式
     * @return mixed
     */
    public function infomation()
    {
        $contact = IndustryNews::getNews();
        $this->assign('contact', $contact);
        return $this->fetch('contact_infomation');
    }
}
